public class HashBuck {
    static class Node{
        public int key;
        public int val;
        public Node next;

        public Node(int key,int val){
            this.key = key;
            this.val = val;
        }
    }
    public Node[] array;
    public int usedSize;
    public HashBuck() {
        this.array = new Node[10];

    }

    public void put(int key, int val){
        int index = key % array.length;
        Node cur = array[index];
        while (cur != null){
            if (cur.val == key){
                cur.val = val;
            }
            cur = cur.next;
        }
    }

    public int get(int key){
        return -1;
    }
}

